home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-25 | 999 b | 27 lines | [TEXT/MPS ] |
- ################################################################################
- # MetroWerks CodeWarrior Support
- # FWCWCppPPC is the full pathname to the MetroWerks CodeWarrior (PPC)
- # We save this permanently and extract just the application name so
- # we can send applevents to it from MPW
- ################################################################################
-
- If ¬ "{FWCWCppPPC}" && "`Exists "{PrefsFolder}"FWCWCppPPC`"
- Set FWCWCppPPC "`Catenate "{PrefsFolder}"FWCWCppPPC`"
- End
- If ¬ "`Exists "{PrefsFolder}"FWCWCppPPC`" || ¬ "`Exists "{FWCWCppPPC}"`"
- Set Exit 0
- Set FWCWCppPPC "`(GetFileName -q -s -t APPL -m "Where is your CodeWarrior IDE?") ≥ Dev:Null`"
- If "{FWCWCppPPC}" != ""
- Echo -n "{FWCWCppPPC}" > "{PrefsFolder}"FWCWCppPPC
- Else
- Set Exit 1
- Exit
- End
- Set Exit 1
- End
- Set FWCWCppPPC "`Catenate "{PrefsFolder}"FWCWCppPPC`"
- (Evaluate "{FWCWCppPPC}" =~ /([¬:]*:)*(≈)®1/) > Dev:Null # Extract filename from a path into ®1
- Set FWCWCppPPCName "{®1}"
- Export FWCWCppPPCName
-
-